#include "testservice.h"

#include <QStringList>

TestService::TestService()
{
}


void TestService::executeNoParams(){
    qDebug() << "call of executeNoParams()";
    emit notifyAll("notify(QString)", QVariantList() << "Coucou");
}


void TestService::executeOneParam(QString message){
    qDebug() << "call of executeOneParam(QString) with param " << message;
}


void TestService::executeTwoParams(QString message, int nb){
    qDebug() << "call of executeTwoParams(QString, int) with param " << message << nb;
}


void TestService::executeThreeParams(QString message, int nb, double d){
    qDebug() << "call of executeThreeParams(QString, int, double) with param " << message << nb << d;
}

void TestService::executeListParam(QStringList list){

    qDebug() << "call of executeListParam(QStringList) with param " << list.join(" | ");
}


QString TestService::sayHello(QString name){
    emit notifyAll("quit()");
    return QString("Hello " + name).toUtf8();
}
